package day5.Final;

public class F {
    //private final int num = 10;
    private final int num2;

    public void setNum2(){
        //num2=10;//会报错
    }

    {
        num2=10;
    }

    public F(int num2) {
         //this.num2=10;
    }

    public F() {
       // num2=10;
    }

    @Override
    public String toString() {
        return "F{" +
                "num2=" + num2 +
                '}';
    }

}
